﻿@model TJBHJJ.Models.Message
@{
    ViewBag.Title = "留言内容";
    Model.IsReaded(Model.Id);
}
<script type="text/javascript">
    $(function () {
        $("#tabs").tabs();
    });
</script>
<div id="tabs">
    <ul>
        <li><a href="#tabs-1">留言内容</a></li>
    </ul>
    <div id="tabs-1">
        @using (Html.BeginForm("EditMsg", "Manager", FormMethod.Post))
        {
            @Html.ValidationSummary(true)
            @Html.HiddenFor(model => model.Id)
            @Html.HiddenFor(model => model.Title)
            @Html.HiddenFor(model => model.Content)
            @Html.HiddenFor(model => model.Name)
            @Html.HiddenFor(model => model.QQ)
            @Html.HiddenFor(model => model.E_mail)
            @Html.HiddenFor(model => model.AddTime)
            @Html.HiddenFor(model => model.Isread)
            @Html.HiddenFor(model => model.IP)
            <table>
                <tr>
                    <td style="width:100px">
                        标题：
                    </td>
                    <td>@Html.DisplayFor(model => model.Title)
                    </td>
                </tr>
                <tr>
                    <td>
                        内容：
                    </td>
                    <td>@Html.DisplayFor(model => model.Content)
                    </td>
                </tr>
                <tr>
                    <td>
                        姓名：
                    </td>
                    <td>@Html.DisplayFor(model => model.Name)
                    </td>
                </tr>
                <tr>
                    <td>
                        QQ
                    </td>
                    <td>
                        @Html.DisplayFor(model => model.QQ)
                    </td>
                </tr>
                <tr>
                    <td>
                        E_mail
                    </td>
                    <td>@Html.DisplayFor(model => model.E_mail)
                    </td>
                </tr>
                <tr>
                    <td>
                        留言时间：
                    </td>
                    <td>@Html.DisplayFor(model => model.AddTime)
                    </td>
                </tr>
                <tr>
                    <td>
                        是否回复：
                    </td>
                    <td>@Html.EditorFor(model => model.Isdispaly)
                    </td>
                </tr>
                <tr>
                    <td>
                        回复内容：
                    </td>
                    <td>@Html.TextAreaFor(model => model.ReplyContent, new { style = "width:700px;height:200px" })
                    </td>
                </tr>
                <tr>
                    <td>
                        回复时间：
                    </td>
                    <td>@Html.DisplayFor(model => model.ReplyTime)
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <input type="submit" value="保存" />
                    </td>
                </tr>
            </table>
        }
        <p>
            @Html.ActionLink("返回列表", "ListMsg")
        </p>
    </div>
</div>
